﻿namespace Rialternative.DomainService
{
    using Rialternative.Repositories;

    /// <summary>
    /// The typed repository.
    /// </summary>
    /// <typeparam name="TRepository">The type of the repository.</typeparam>
    public class RepositoryDomainService<TRepository> : RepositoryDomainService where TRepository : IRepository
    {
        /// <summary>
        /// Gets the repository.
        /// </summary>
        /// <value>The repository.</value>
        public new TRepository Repository
        {
            get
            {
                return (TRepository)base.Repository;
            }
        }
    }
}
